<?php

namespace App\Http\Middleware;

use App\Http\Controllers\Responser;
use Illuminate\Auth\Middleware\Authenticate as Middleware;

class Jwt
{

    use Responser;
    public function handle($req, \Closure $next)
    {
//        \Log::info();
        return $req->user()||auth('jwt')->check() ? $next($req) : $this->resLogin('尚未登录或登录超时2。');
    }
}
